<?php
/**
 * Created by PhpStorm.
 * User: jwb
 * Date: 2021/4/29
 * Time: 11:24
 */

namespace App\Extensions\Form\Field;


class BelongsTo extends \Encore\Admin\Form\Field\BelongsTo
{
    /**
     * @param int $multiple
     *
     * @return string
     */
    protected function getLoadUrl($multiple = 0)
    {
        $selectable = str_replace('\\', '_', $this->selectable);
        $args = [$multiple];

        return admin_route('handle-selectable', compact('selectable', 'args'));
    }
}
